extends "../shengli-1/shengli-1.gd"

func _extInit():
	._extInit()
	lv = 2
	addSkill("<固化>每10秒赋予全体队友3层<活力>", "胜利之歌")
var limit = 15
var flag = 0
var sing = 0
var p2 = 3
func _upS():
	._upS()
	flag += 1
	if flag >= 10:
		slzg()
		flag = 0

func _onBattleEnd():
	._onBattleEnd()
	flag = 0
	sing = 0

func slzg():
	utils.createSkillTextEff("胜利之歌", position)
	for i in getAllChas(2):
		buff.addHuoLi(i, self, p2)
	sing += 1

	if sing >= limit and lv == 4:
		for i in getAllChas(1):
			forceKillCha(i)